package com.cykj.v_m_sprintboot.service;

import com.cykj.v_m_sprintboot.bean.TbCommodity;
import com.cykj.v_m_sprintboot.bean.TbCommorityCategory;
import com.cykj.v_m_sprintboot.bean.TbVmi;

import java.util.List;

public interface TbCommodityService {
    List<TbVmi> vmiInfo();//查询售货机
    void vmPay(String ConName,String goodsType,String goodsUnit,String categoryID,String ConNum,
               String orderTime,String vmid);//售货机购买
    void vmFundComm(String comImage,String conName,String conNum,String comPrice,String tradeNo);//售货机购买后添加商品订单
    void vmSup(String ConName,String ConNum,String vmid);//售货机补货
    //售货机付款后添加订单
    void vmOrder(String tradeNo,String fundName,String fundTime,String fundState,String fundMoney,
                 String fundNum,String payMethod,String VMID,String openID);
    //查询商品总条数
    int selcommdity();
    //查询商品分页
    List<TbCommodity> selcommdityPage(int page, int size,int vmid,int cateid);
    //查询每台机子的商品
    List<TbCommodity> selectCommList(int vmid,int cateid,int page1,int size1);
    //修改商品数量
    void updateCommodity(int comNum,int comId,String comName,String comPrice);
    //删除商品
    void delCommodity(int comId);
    //添加商品
    void insComm(String comImage,String comName,String comPrice,int cateid,int vmid,int comNum);
}
